package com.xiaoyu.awakening.common.core.openapi;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * open api config
 *
 * @author wangxiaoyu
 * &#064;date  2024/5/30 14:23
 * @since v1.0
 */
@ConfigurationProperties(prefix = "awk.common-doc")
@ConditionalOnProperty(prefix = "awk.common-doc", name = "enable", havingValue = "true", matchIfMissing = false)
@Data
public class OpenApiDocProperties {
    private String title = "API";

    private String description = "API documentation";

    private String version = "0.0.1";

    private String termsOfServiceUrl = "https://gitee.com/yu2016";

    private String contactName = "wangxiaoyu";

    private String contactUrl = "https://gitee.com/yu2016";

    private String contactEmail = "wangxiaoyu";

    private String license;

    private String licenseUrl;

    private String includePattern;

    private String basePackage;
}
